
import request from "../utils/axios";

export const addTicket = (params:any) => {
    return request.post('/api/tickets/addTicket', params)
}

export const getTicketByOrder = (params:any) => {
    return request.post(`/api/tickets/getTicketByOrder`, {
        orderId: params.orderId
    })
}

export const removeTicketById = (params:any) => {
    return request.post(`/api/tickets/removeTicketById/`,params)
}

export const getTicketStatus= (params:any) => {
    return request.get(`/api/tickets/getTicketStatus/${params.ticketId}`)
}
